﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class BillTemplateConfig : EntityTypeConfigBase<BillTemplate>
	{
		public BillTemplateConfig()
		{
			Property(bt => bt.HospitalId)
				.IsRequired()
				.HasMaxLength(32);

			Property(bt => bt.BillTitle)
				.HasMaxLength(50);

			Property(bt => bt.Address)
				.HasMaxLength(255);

			Property(bt => bt.PhoneNumber)
				.HasMaxLength(20);

			Property(bt => bt.FaxNumber)
				.HasMaxLength(20);

			Property(bt => bt.FootText)
				.HasMaxLength(50);
		}
	}
}
